#
# Stray Photons - Copyright (C) 2023 Jacob Wirth & Justin Li
#
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
# If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
#

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    set(CARGO_CMD cargo build --verbose)
    set(CARGO_BUILD_TYPE "debug")
else()
    set(CARGO_CMD cargo build --release --verbose)
    set(CARGO_BUILD_TYPE "release")
endif()

add_subdirectory(sp-rs-wasm)
add_subdirectory(sp-rs-winit)
